package com.ruike.alisurface.ui.adapters;

import android.content.Context;
import android.widget.TextView;

import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.ruike.alisurface.R;
import com.ruike.alisurface.bean.ShoptypeBean;

import java.util.List;

public class ShopTyepAdapter extends BaseQuickAdapter<ShoptypeBean.DataBean.ChildrenBeanX.ChildrenBean, BaseViewHolder> {



    Context mContext;

    public ShopTyepAdapter(@LayoutRes int layoutResId, @Nullable List<ShoptypeBean.DataBean.ChildrenBeanX.ChildrenBean> data, Context context) {
        super(layoutResId, data);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, ShoptypeBean.DataBean.ChildrenBeanX.ChildrenBean bean) {
        TextView typeTitle = helper.getView(R.id.top_list_title_label);
        typeTitle.setText(bean.getLabel());
        typeTitle.setSelected(bean.isSelect());
        //获取当前item的position
        //int position = helper.getLayoutPosition();
    }
}

